package him.action.member;

import java.util.List;

import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;

import him.action.Action;
import him.action.ActionForward;
import him.dto.member.CodeDTO;
import him.service.MemberService;
import him.serviceimple.MemberServiceImple;

public class MemberInsertBfAction implements Action {

	@Override
	public ActionForward execute(HttpServletRequest request,
			HttpServletResponse response) {
		ActionForward actforward = new ActionForward();
		MemberService service = MemberServiceImple.getInstance();
		
		//String code="15";
		List<CodeDTO> acacodelist = service.codeList("15");
		List<CodeDTO> servicelist = service.codeList("9");
		List<CodeDTO> grouplist = service.codeList("8");
		List<CodeDTO> branchlist = service.codeList("6");
		List<CodeDTO> lanlist = service.codeList("12");
		List<CodeDTO> lantestlist = service.codeList("14");
		List<CodeDTO> famlist = service.codeList("10");
		
		request.setAttribute("acalist", acacodelist);
		request.setAttribute("service", servicelist);
		request.setAttribute("grouplist", grouplist);
		request.setAttribute("branchlist", branchlist);
		request.setAttribute("lanlist", lanlist);
		request.setAttribute("lantestlist", lantestlist);
		request.setAttribute("famlist", famlist);
		
		actforward.setUrl("insertMember");
		return actforward;
	}

}
